namespace Comms.Drt {
    public class ServerResourceMessage : Message {
        public string Name;

        public int Version;

        public byte[] Bytes;

        public override void Read(Reader reader) {
            Name = reader.ReadString();
            Version = reader.ReadInt32();
            Bytes = reader.ReadBytes();
        }

        public override void Write(Writer writer) {
            writer.WriteString(Name);
            writer.WriteInt32(Version);
            writer.WriteBytes(Bytes);
        }
    }
}